package sctu.edu.java.year2016.team02.huangguojing.day20160605.Chapter11_1;

/**
 * Created by Eoly on 2016/6/6.
 */
public class Student {
    public static void main(String[] args) {
        Student m=new Student();
        try {
            m.speak(1565);
        } catch (MyException e) {
            e.printStackTrace();
        }
    }
    void speak(int m)throws MyException{
        if(m>1000)
            throw new MyException();
        else System.out.println(m);
    }
}
